FROM centos7/jdk1.8
#指定工作目录
WORKDIR /usr/local
RUN touch face.log
ADD face-server-1.0-SNAPSHOT.jar face-server-1.0-SNAPSHOT.jar
#指定暴露的端口号
EXPOSE 8899
ENTRYPOINT java -jar face-server-1.0-SNAPSHOT.jar > face.log 2>&1